#include "TestClearColor.h"

#include <GL/glew.h>
#include "Renderer.h"

#include "imgui/imgui.h"
namespace test
{
	TestClearColor::TestClearColor()
		: m_ClearCcolor { 0.2f, 0.3f, 0.5f, 1.0f }
	{
	}
	TestClearColor::~TestClearColor()
	{
	}
	void TestClearColor::OnUpdate(float deltaTime)
	{

	}
	void TestClearColor::OnRender()
	{
		GLCall(glClearColor(m_ClearCcolor[0], m_ClearCcolor[1], m_ClearCcolor[2], m_ClearCcolor[3]));
		GLCall(glClear(GL_COLOR_BUFFER_BIT));

	}
	void TestClearColor::OnImGuiRender()
	{
		ImGui::ColorEdit4("Clear color", m_ClearCcolor);
	}
}